package cn.edu.flink.tutorial.source;

import lombok.Getter;

@Getter
public class Sensor {
    String name;
    Long data;
    double value;

    public Sensor(String name, Long data, double value) {
        this.name = name;
        this.data = data;
        this.value = value;
    }

    @Override
    public String toString() {
        return "SensorReading{" +
                "name='" + name + '\'' +
                ", data=" + data +
                ", value=" + value +
                '}';
    }
}
